/**
 * Created by gavin on 19/2/15.
 */
import axios from "../../utils/axios";

// 运费设置列表
export function getList(query) {
    return axios({
        url: "/BusFreight/getList",
        method: "get",
        params: query
    });
}
// 运费设置列表
export function getWarehouseCompany(query) {
    return axios({
        url: "/BusFreight/getWarehouseCompany",
        method: "get",
        params: query
    });
}
// 添加
export function addbusfreight(data) {
    return axios({
        url: "/BusFreight/addbusfreight",
        method: "post",
        data: data
    });
}
// 添加
export function editbusfreight(data) {
    return axios({
        url: "/BusFreight/editbusfreight",
        method: "post",
        data: data
    });
}

// 删除
export function delbusfreight(data) {
    return axios({
        url: "/BusFreight/delbusfreight",
        method: "put",
        data: data
    });
}
// 仓库列表
export function getBusWarehouselist(query) {
    return axios({
        url: "/BusFreight/getBusWarehouselist",
        method: "get",
        params: query
    });
}
//快递列表
export function getBusExpresslist(query) {
    return axios({
        url: "/BusFreight/getBusExpresslist",
        method: "get",
        params: query
    });
}
export function getRegionList(query) {
    return axios({
        url: "/goldendays-currency/sysArea/getRegionList",
        method: "get",
        params: query
    });
}
